<template>
	<!-- 播放视频 -->
	<view class="page">
		<u-popup :show="show" mode="center" round="20" :closeOnClickOverlay="false" safeAreaInsetTop closeable @close="close">
			<view class="content">
				<video class="vid" :src="url"></video>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		name: "c-playVideo",
		props: {
			show: {
				default: false,
				type: Boolean
			},
			url: {
				default: '',
				type: String
			}
		},
		data() {
			return {};
		},
		onLoad() {},
		onShow() {},
		methods: {
			close() {
				this.$emit("update:show", false)
			}
		}
	};
</script>

<style lang="scss" scoped>
	.content{
		width: 710rpx;
		text-align: center;
		.vid{
			width: 90%;
		}
	}
</style>